package com.study.web.dto;

import java.io.Serializable;
import java.util.List;

import com.study.common.base.entity.BaseEntity;

/**
 * Created by ryhx.ZhangCheng on 2017/5/4.
 *
 * @remark 角色设置权限专用实体
 */
@SuppressWarnings("all")
public class PermissionDto extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -5702786319009689010L;
    private Long rightsId;//权限id
    private Long parentId;//权限父id
    private String zhName;//权限名称
    private String permission;//所需操作权限
    private Integer hashPermission=2;//有 1 没有2
    private Integer permissionType;

    public String getPermission() {
        return permission;
    }
    public void setPermission(String permission) {
        this.permission = permission;
    }
    public Integer getPermissionType() {
        return permissionType;
    }

    public void setPermissionType(Integer permissionType) {
        this.permissionType = permissionType;
    }

    private List<PermissionDto> childrens;

    public List<PermissionDto> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<PermissionDto> childrens) {
        this.childrens = childrens;
    }

    public Long getRightsId() {
        return rightsId;
    }

    public void setRightsId(Long rightsId) {
        this.rightsId = rightsId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getZhName() {
        return zhName;
    }

    public void setZhName(String zhName) {
        this.zhName = zhName;
    }

    public Integer getHashPermission() {
        return hashPermission;
    }

    public void setHashPermission(Integer hashPermission) {
        this.hashPermission = hashPermission;
    }
}
